package com.seek.eduservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * author wml
 * Created on 2022/1/9 17:16
 */
@SpringBootApplication
@EnableDiscoveryClient // nacos 注册
@EnableFeignClients
@ComponentScan(basePackages = {"com.seek"})
@MapperScan("com.seek.eduservice.mapper") // mapper 包下的 xml 在项目启动时会自动加载（需配置三个地方，pom文件加build，配置文件，启动类）
public class EduApplication {

    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }
}
